<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model结合rcheckbox</title>
</head>
<body>
    <div id="app">
        <label for="">
<!--            <input type="checkbox" value="乒乓球" v-model="hobby"/>乒乓球-->
<!--            <input type="checkbox" value="羽毛球" v-model="hobby"/>羽毛球-->
<!--            <input type="checkbox" value="摄影" v-model="hobby"/>摄影-->
            <input type="checkbox" value="摄影" v-model="isAgree"/>同意协议
        </label>
        <h2>当前选择为： {{isAgree}}</h2>
        <button :disabled="!isAgree">下一步</button>
    </div>
</body>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                message: '双向绑定',
                hobby: [
                    '乒乓球',
                    '羽毛球',
                    '摄影',
                ],
                isAgree: false,
            },
            methods: {

            },
        })
    </script>
</html>